local jiang = fk.CreateSkill{
  name = "iberia__jiang",
}

Fk:loadTranslationTable{
  [jiang.name] = " 激昂",
  [":"..jiang.name] = "当一名角色使用【决斗】或红色【杀】指定目标时，你可以摸一张牌，然后成为此牌的目标。",

  ["#"..jiang.name] = "激昂：可以摸一张牌，然后成为%arg的目标。",
}

jiang:addEffect(fk.CardUsing, {
  can_trigger = function (self, event, target, player, data)
    return player:hasSkill(jiang.name) and (
      (data.card.trueName == "slah" and data.card.color == Card.Red)
      or (data.card.trueName == "duel")
    )
  end,
  on_cost = function (self, event, target, player, data)
    player.room:askToSkillInvoke(player, {
      skill_name = jiang.name,
      prompt = "#"..jiang.name..":::"..data.card:toLogString(),
    })
  end,
  on_use = function (self, event, target, player, data)
    local room = player.room
    room:drawCards(player, 1, jiang.name)
    if player ~= target and not data:hasTarget(player) then
      data:addTarget(player)
    end
  end
})

return jiang